package homework_2.college;

/**
 * @author 朱
 * @date 2019031821:17
 */
public class VIPUnvirsity extends Unvirsity {
    public VIPUnvirsity(double math, double english, double chinese, double sport) {
        super(math, english, chinese, sport);
    }
    @Override
    public void enter(){
        if (math+english+chinese>=290&&sport>=60){
            System.out.println("恭喜！4门课总分为："+(math+english+chinese)+"且体育达标，达到重点大学录取线");
        }else {
            System.out.println("您未被重点大学录取！");
        }
    }
}
